package com.hf.buildtb.action;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;

import com.hf.base.shh.BaseActionGen;
import com.hf.buildtb.entity.BiCooperator;
import com.hf.buildtb.formodel.BiCooperatorForm;
import com.hf.buildtb.service.BiCooperationService;

@ParentPackage("default")
@Namespace("/buildtb/bicooperator")
@Action("biCooperatorAction")
@Results({
		@Result(name="list",location="/buildtb/cooperator.jsp",type="dispatcher"),
		@Result(name="error",location="/error.jsp",type="dispatcher")

		})
public class BiCooperatorAction extends BaseActionGen<BiCooperatorForm,BiCooperationService,BiCooperator> {

	/**
	 * 
	 */
	private static final long serialVersionUID = -143282915610038329L;

	@Override
	public void checkAdd() throws Exception {
		// TODO Auto-generated method stub
		BiCooperator biCooperator=	getPageEntity().getEntity();
		if (biCooperator.getId()==null||biCooperator.getId().equals("")) {
			throw new Exception("代码不能为空");
		}
		
		 
	}

	@Override
	public void checkList() throws Exception {
		// TODO Auto-generated method stub
	 
	}

}
